import request from './request';

// 商机列表
export function business_getBusinessList(data) {
  return request({
    url: 'business/getBusinessList',
    method: 'post',
    data
  });
}

//商机详情
export function business_getBusinessDetail(data) {
  return request({
    url: 'business/getBusinessDetail',
    method: 'post',
    data
  });
}

//保存商机
export function business_saveBusiness(data) {
  return request({
    url: 'business/saveBusiness',
    method: 'post',
    data
  });
}

// 商机标签列表
export function business_getBusinessLabelList(data) {
  return request({
    url: 'business/getBusinessLabelList',
    method: 'post',
    data
  });
}

// 收藏商机
export function business_collectBusiness(data) {
  return request({
    url: 'business/collectBusiness',
    method: 'post',
    data
  });
}

// 取消收藏商机
export function business_cancelCollect(data) {
  return request({
    url: 'business/cancelCollect',
    method: 'post',
    data
  });
}

// 投递名片
export function business_deliveryCard(data) {
  return request({
    url: 'business/deliveryCard',
    method: 'post',
    data
  });
}

//删除我发布的商机
export function business_deleteBusiness(data) {
  return request({
    url: 'business/deleteBusiness',
    method: 'post',
    data
  });
}

//更新商机
export function business_updateBusiness(data) {
  return request({
    url: 'business/updateBusiness',
    method: 'post',
    data
  });
}
